Skip to content

Conversation

GUMUNYEONG
Copy link
Contributor

답안 제출 문제

  • Two Sum

@GUMUNYEONG GUMUNYEONG changed the title GUMUNYEONG : two-sum [GUMUNYEONG] Week3 문제풀이 Aug 30, 2024



for (const key in numPair) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저도 비슷하게 풀었습니다!
제가 받은 코드 리뷰에서는 "적절한 자료구조를 활용해서 더 효율적인 방식으로 풀어볼 수 있을 것" 이라고 답변을 받았고 다른 풀이 법을 고민 해 봤습니다.
문영님도 해시맵(Map)과 같은 방법을 활용해 보시는 게 좋을 것 같다는 의견을 남깁니다!

@GUMUNYEONG GUMUNYEONG marked this pull request as ready for review August 30, 2024 08:39
@GUMUNYEONG GUMUNYEONG requested a review from a team as a code owner August 30, 2024 08:39
@GUMUNYEONG GUMUNYEONG requested a review from hyejjun August 30, 2024 08:51
@bky373
Copy link
Contributor

bky373 commented Aug 30, 2024

안녕하세요~ 이제 자동 워크플로 통해 언어 label 이 알아서 추가되고 있습니다!
다음 PR에서는 직접 추가하지 않으셔도 됩니다!

Copy link
Member

@DaleSeo DaleSeo Aug 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

입력으로 nums = [0, 0], target = 0이 주어진다면 어떨까요? [0, 1] 대신에 undefined가 반환될 것 같아서 여쭙니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

앗...!!!! 네 맞습니다..!! 테스트 케이스 이외에 다른 경우를 고려하지 못했네요..
다음부터는 좀 더 세심하게 여러 케이스를 생각해서 짜야겠습니다.
피드백 감사합니다!

@GUMUNYEONG GUMUNYEONG merged commit ffade1e into DaleStudy:main Sep 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

4 participants